using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityShippingInfosUpdateExtend
{
		public static ShippingInfos ToUpdateEntity(this RequestShippingInfosDto dto)
		{
			return new ShippingInfos
			{
				SiCurrentStatus = dto.currentStatus,
				SiEstimatedArrivalDate = dto.estimatedArrivalDate,
				SiId = dto.id,
				SiShippingDate = dto.shippingDate,
			};
		}
	}
}
